//
//  acViewController.m
//  stotyboard豆瓣电影
//
//  Created by Zhao YanBin on 16/1/4.
//  Copyright © 2016年 panxue. All rights reserved.
//

#import "acViewController.h"
#import "ac2TableViewCell.h"
#import "NetworkHandler.h"
#import "UIImageView+WebCache.h"
@interface acViewController ()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation acViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = _colle.title;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    ac2TableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    cell.label1.text = _colle.title;
    cell.label1.text = self.colle.title;
    cell.begin_time.text = self.colle.begin_time;
    cell.end_time.text =self.colle.end_time;
    cell.address.text = self.colle.address;
    cell.content.text = self.colle.content;
    cell.leixing.text = self.colle.category_name;
    cell.danwei.text = self.colle.name;
    [cell.image sd_setImageWithURL:[NSURL URLWithString:_colle.image]];
    return cell;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 1700;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
